﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using ThreadUtilHelpV2;
namespace ThreadUtilHelpV2Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnTest1_Click(object sender, EventArgs e)
        {

            this.UIThread(delegate
            {
                txtDateTime.Text = DateTime.Now.ToShortTimeString();
            });
            Thread.Sleep(1000);

        }
    }
}
